Skip to content

fix: Linux packaging — copy desktop/icons for non-AppImage builds, prevent set -e exit#10878

Open
BenJule wants to merge 2 commits into
bambulab:masterfrom
BenJule:upstream/fix/linux-packaging
Open

fix: Linux packaging — copy desktop/icons for non-AppImage builds, prevent set -e exit#10878
BenJule wants to merge 2 commits into
bambulab:masterfrom
BenJule:upstream/fix/linux-packaging

Conversation

@BenJule
Copy link
Copy Markdown

@BenJule BenJule commented May 22, 2026

Summary

Two small Linux packaging fixes:

1. Copy desktop file and icons into build/package/ for non-AppImage builds (src/platform/unix/BuildLinuxImage.sh.in)

The install step was only run when building an AppImage. For .deb / container builds that skip the AppImage step, BambuStudio.desktop and the icon tree were missing from build/package/, causing packaging scripts to fail. The install step is now always run unconditionally.

2. Prevent set -e from exiting when GTK3 is not yet installed (linux.d/debian)

dpkg -l libgtk* | grep gtk-3-dev exits with code 1 when the package is not installed, which combined with set -e would abort the script before the dependency-installation path is reached. Fixed by appending || echo '' so the expression always succeeds.

BenJule added 2 commits May 22, 2026 13:57
BuildLinuxImage.sh.in only populated package/ with the binary and
resources; the .desktop file and hicolor icons were only added later
by build_appimage.sh. When packaging scripts (build_deb.sh,
build_rpm.sh) run without a prior AppImage build they would fail
trying to read a missing BambuStudio.desktop.

Always copy the source .desktop and sized PNGs so system packages
work regardless of whether the AppImage step runs.
FOUND_GTK3 grep returns exit code 1 in a fresh container where gtk3
is not yet installed, causing BuildLinux.sh -ur to abort immediately.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant